package com.Reactor3参考文档.condition;

import reactor.core.publisher.Flux;

// 如果原始数据库中没有元素，则返回一个默认元素
public class DefaultValueIfEmpty {

	public static void main(String[] args) {
		Flux<String> stream = Flux.empty();
		Flux<String> result = stream.defaultIfEmpty("test");
		result.subscribe(System.out::println);
	}

}
